package cn.com.surker.sale.dao;

import cn.com.surker.sale.entity.ConStatusRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合同授权记录变动表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-07-30
 */
public interface ConStatusRecordDao extends BaseMapper<ConStatusRecord> {

    /**
     * 查询关停记录总数
     * @param orgId
     * @param conId
     * @param searchVal
     * @param sales
     * @param startTime
     * @param endTime
     * @return
     */
    Integer findRecordTotal(Long orgId, Long conId,String searchVal, String sales, String startTime, String endTime);

    /**
     * 查询记录分页
     * @param orgId
     * @param conId
     * @param searchVal
     * @param sales
     * @param startTime
     * @param endTime
     * @param offset
     * @param limit
     * @return
     */
    List<Map<String, Object>> findRecordPage(Long orgId, Long conId,String searchVal, String sales, String startTime,
                                             String endTime, Integer offset, Integer limit);
}
